import request from '@/utils/request'

/** S 运营商 **/
// 获取申请协议
export const apiCitySupplierAgreement = () => request.get(
	'citySupplier/getAgreement')

// 获取申请自定义字段
export const apiCitySupplierField = () => request.get(
	'citySupplier/getDiyApplyField')

// 提交申请
export const apiCitySupplierApply = params => request.post('citySupplier/apply', params)

export const apiCitySupplierInfo = () => request.get(
	'citySupplier/detail')

// 绑定运营商
export const apiCitySupplierBindCode = (data) => request.post('citySupplier/bindCode', data)

// 绑定业务员
export const apiCitySupplierBindUser = (data) => request.post('citySupplier/bindSalemanCode', data)
/** E 运营商 **/


/** S 业务员 **/

export const apiCitySupplierSalemanList = params => request.get('citySupplier/salemanLists', {
	params
})

export const apiCheckSalemanExist = params => request.get('citySupplier/checkSalemanExist', {
	params
})

export const apiCitySupplierSalemanAdd = params => request.post('citySupplier/salemanAdd', params)

export const apiCitySupplierSalemanDel = params => request.post('citySupplier/salemanDel', params)

export const apiCitySupplierSalemanAll = params => request.get('citySupplier/getAllSaleman', {
	params
})
/** E 业务员 **/

/** S 客户 **/

export const apiCitySupplierClientList = params => request.get('citySupplier/clientLists', {
	params
})
/** E 客户 **/

/** S 订单 **/

export const apiCitySupplierProfitList = params => request.get('citySupplier/profitLists', {
	params
})
/** E 订单 **/

/** S 图表 **/

export const apiCitySupplierChartData = params => request.get('citySupplier/chartData', {
	params
})
/** E 图表 **/

/** S 拉新 **/

export const apiCitySupplierPullUserList = params => request.get('citySupplier/pullUserLists', {
	params
})
/** E 拉新 **/